package org.desktop.web.shared.domain.project.bean;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonAutoDetect.Visibility;
import com.google.gwt.user.client.rpc.IsSerializable;

@JsonAutoDetect(fieldVisibility = Visibility.ANY)
public class SubProject implements IsSerializable {

	@JsonProperty("id")
	private int id;

	@JsonProperty("descSubProject")
	private String descSubProject;

	@JsonProperty("endDate")
	private Date endDate;

	@JsonProperty("closed")
	private boolean closed;

	@JsonProperty("startDate")
	private Date startDate;

//	@JsonProperty("idProject")
//	private int idProject;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getDescSubProject() {
		return descSubProject;
	}

	public void setDescSubProject(String descSubProject) {
		this.descSubProject = descSubProject;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	public boolean isClosed() {
		return closed;
	}

	public void setClosed(boolean closed) {
		this.closed = closed;
	}

	public Date getStartDate() {
		return startDate;
	}

	public void setStartDate(Date startDate) {
		this.startDate = startDate;
	}

//	public int getIdProject() {
//		return idProject;
//	}
//
//	public void setIdProject(int idProject) {
//		this.idProject = idProject;
//	}

}
